//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.jiaai.cloud.base.exception;

public class BaseException extends Exception {
    private static final long serialVersionUID = -1106912179584850802L;
    private String message;
    private int code;
    private String description;

    public BaseException(String message, int code, String description) {
        super(message);
        this.message = message;
        this.code = code;
        this.description = description;
    }

    public BaseException(String message, int code, Exception ex) {
        super(ex);
        this.message = message;
        this.code = code;
        this.description = ex.getMessage();
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
